package org.kisekiproject.evaluator.nodes {
	import flash.events.EventDispatcher;

	import org.kisekiproject.evaluator.nodes.ISyntaxNode;

	/**
	 * @author mikael
	 */
	public class ConstantNode extends EventDispatcher implements ISyntaxNode {

		private var _value : Object;
		private var _index : int;

		/**
		 * Constructor.
		 */
		public function ConstantNode(val:Object, index:int) {
			_value=val;
			_index=index;
		}

		/**
		 * Get value.
		 */
		public function get value() : Object {
			return _value;
		}

		/**
		 * Get index.
		 */
		public function get index() : int {
			return _index;
		}
	}
}
